package com.xc.service;

import com.github.pagehelper.PageInfo;
import com.xc.common.ServerResponse;
import org.apache.catalina.Server;

import javax.servlet.http.HttpServletRequest;
import java.math.BigDecimal;

/**
 * @author mipha
 * @version 1.0
 * @date 2019/2/16 3:06 PM
 */
public interface IUserWithdrawService {


    //  用户出金
    ServerResponse outMoney(String amt,HttpServletRequest request) throws Exception;

    //  用户提现记录
    ServerResponse<PageInfo> findUserWithList(String withStatus
            , HttpServletRequest request, int pageNum, int pageSize);

    //  用户主动取消提现订单
    ServerResponse userCancel(Integer withId);


    /**
     *  代理后台
     */
    ServerResponse listByAgent(Integer agentId,String realName,Integer state
            ,HttpServletRequest request,int pageNum,int pageSize);


    /**
     * 管理后台
     */
    ServerResponse<PageInfo> listByAdmin(Integer agentId,Integer userId,String realName
            ,Integer state,String beginTime,String endTime
            ,HttpServletRequest request,int pageNum,int pageSize);
    ServerResponse updateState(Integer withId,Integer state,String authMsg) throws Exception;

    BigDecimal CountSpWithSumAmtByState(Integer withState);


}
